﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComicViewer.IManhua
{
    public class ComicTable
    {
        public string Id { get; set; }
        public string Name { get; set; }

        public List<ComicPage> Pages { get; set; }

        public ComicBook Book { get; set; }

        public ComicTable()
        {
            Pages = new List<ComicPage>();
        }

        public void AddPage(ComicPage page)
        {
            if (Pages.Count > 0)
            {
                page.Prev = Pages[Pages.Count - 1];
                page.Prev.Next = page;
            }
            Pages.Add(page);
        }
    }
}
